package com.pigs.pigsordersystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author PIGS-猪农·杨
 * @version 1.0
 * @date 2020/3/14 19:15
 * @effect
 * 产品图标 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@TableName("product_image")
@ApiModel("产品图片实体类")
public class ProductImageEntity extends BaseEntity{
    /**
     * 商品图片
     */
    @ApiModelProperty(value = "产品图片",required = true)
    private String image;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id",required = true)
    private Integer productId;

    @Override
    public String toString() {
        return "ProductImageEntity{" +
                "image='" + image + '\'' +
                ", productId=" + productId +
                ",imageId='" + super.getId() + '\'' +
                ",imageStatus='" + super.getStatus() + '\'' +
                '}';
    }
}
